import { ICreateUser, IUser } from "@/apis/types"
import { FormItemRule } from "element-plus/es/components/form/src/types"

export interface IUserManagementState {
    [key: string]: any
    userList: IUser[]
    userCount: number
    userListPageAndSize:{
        page: number
        size: number
    },
    userFields: Array<{ prop: string, label: string }>
    userForm: ICreateUser
    userFormRules: { [key: string]: FormItemRule[] }
    userRoleOpts: Array<{ label: string, value: string }>
    userCameraOpts: Array<{ label: string, value: string }>
    userFormComponent: {
        [key: string]: any
        formStatus: string
        formPlaceholder: {
            [key: string]: string
            username: string
            password: string
            email: string
            role: string
            camera: string
            createdAt: string
            updatedAt: string
        }
        formControl: {
            [key: string]: any
            submit: {
                value: string
                type: 'default' | 'primary' | 'success' | 'warning' | 'danger'
            }
            reset: {
                value: string
                type: 'default' | 'primary' | 'success' | 'warning' | 'danger'
            }
        }
    }
}
export interface IUserManagementActions {
    [key: string]: any
}
export interface IUserManagementGetter {
    [key: string]: any
}
export interface IUserManagementMutations {
    [key: string]: any
}


